package edu.sctu.practice.class01.zhangwang.day2015_10_08.text05;

/**
 * Created by Z_W on 2015/10/9.
 */
public class Person {
    private String name;
    private int age;

    public Person(String name,int age){
        this.age = age;
        this.name = name;
    }

    public void display(){
        System.out.println("他叫："+name+",今年"+age+"岁。");
    }

    public static void main(String[] args) {
        Person person = new Person("张三",25);
        person.display();
    }
}
